<!DOCTYPE html>
{% load static %}
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
       <link rel="stylesheet" href="{% static 'plugins/bootstrap-3.4.1/css/bootstrap.min.css' %}">
    <link rel="stylesheet" href="{% static 'plugins/font-awesome-4.7.0/css/font-awesome.min.css' %}">
    <style>

    </style>
</head>
<body>
<h1>
    商品详细
</h1>
<ul>
    <li>商品：{{ goods.0.food }}</li>
    <li>价格：{{ goods.0.price }}</li>
    <li>图片：<img src="{{ goods.0.img }}" alt=""></li>
    <li>数量：{{ goods.0.numbers }}</li>
    <li>
        <form action="" method="post">
            {% csrf_token %}
            <button type="submit" class="btn btn-danger">加入购物车</button>
            <input type="text" name="gid" value="{{ goods.0.id}}">
            <input type="text" name="uid" value="{{ uid }}">
           <!-- <a href="/goods/?car_gid={{ goods.0.gid}}">加入购物车</a>-->
        </form>
    </li>
</ul>
</body>
<script src="{% static 'js/jquery-3.6.0.min.js' %}"></script>
<script src="{% static 'plugins/bootstrap-3.4.1/js/bootstrap.min.js' %}"></script>
</html>